<template>
    <div>
    <DetailModalModal @register="registerDetailModalModal"
    @success='handleDetailModalSuccess'
    ></DetailModalModal>
    </div>
</template>

<script lang='ts' setup>
import DetailModalModal from './DetailModalModal.vue';

  const [registerDetailModalModal, { openModal:openDetailModalModal, closeModal:closeDetailModalModal }] = useModal();
  function handleOpenDetailModalModal(){
    openDetailModalModal(true, {
      formStatus: 'add',
      record: {},
    })

  }
</script>

<style scoped>

</style>
